home *** CD-ROM | disk | FTP | other *** search
/ Laboratorio Interattivo Deagostini / laboratorio interattivo deagostini.bin / swf / 10301.swf / scripts / frame_1 / PlaceObject2_39_1 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2002-12-18  |  453b  |  21 lines

  1. onClipEvent(enterFrame){
  2.    Ycur2 = this.barratot.barra.scroll._y;
  3.    offset = (Ycur2 - Ycur1) * rapporto;
  4.    Yclip2 = Yclip1 - offset;
  5.    this.esercizio._y = Yclip2;
  6.    if(vaisu == true)
  7.    {
  8.       if(hScroll < Ycur2)
  9.       {
  10.          this.barratot.barra.scroll._y = Ycur2 - 5;
  11.       }
  12.    }
  13.    if(vaigiu == true)
  14.    {
  15.       if(Ycur2 < hBarra - hScroll * 2)
  16.       {
  17.          this.barratot.barra.scroll._y = Ycur2 + 5;
  18.       }
  19.    }
  20. }
  21.